
package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.mybatis.annotations.Column;
import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;

import java.io.Serializable;

/**
 * create by gcj on 2015-09-15
 * DROP TABLE IF EXISTS `nb_soft_tag`;
 CREATE TABLE `nb_soft_tag` (
 `tag_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标签id',
 `tag_name` varchar(50) DEFAULT NULL COMMENT '标签名称',
 `sort_index` int(11) DEFAULT NULL COMMENT '排序号',
 `state` int(11) DEFAULT '0' COMMENT '状态：0：正常 -1 失败',
 `last_modify_time` int(11) DEFAULT '0' COMMENT '最后修改时间',
 PRIMARY KEY (`tag_id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=993 DEFAULT CHARSET=utf8 COMMENT='软件标签';

 */
@Table(value = "nb_soft_tag")
public class SoftTag implements Serializable{

    private static final long serialVersionUID = -8244661101951482489L;

    public static final Integer STATE_DEL = -1;

    public static final Integer STATE_SHOW = 0;

    @Id(value = "tag_id")
    private Integer tagId;
    @Column(value = "tag_name")
    private String tagName;//标签名称
    @Column(value = "sort_index")
    private Integer sortIndex;//排序号
    @Column(value = "state")
    private Integer state; //状态：0：正常 -1 失败
    @Column(value = "last_modify_time")
    private Integer lastModifyTime; //最后修改时间

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
}
